[ Home |
Download |
Order |
Support
]
[ Table of Contents ]
Attributes Editor
This editor is available from the Attributes tab of the Configuration Editor.
This editor allows you to add new attributes and reconfigure existing ones. It is also used to assign attributes to the attributes list of the tag name being configured. Use this editor to specify the attributes that are valid for a tag name.
For example, to add an attribute to a tag:
- Select the tag that you want to add an attribute to in the Tag Name Being Configured combo box. A list of currently assigned attributes of the tag now appears in the Tag attributes list box.
- From the Attributes list box, simply double click the attribute that you want to add to the tag. The attribute should now appear in the Tag attributes list box.
- If the attribute does not exist, you can add it by typing it in the edit box and then pressing the New Attribute button. Assign a category to the new attribute using the Attribute category combo box and use the Attribute Values tab to assign the values that this attribute can have.
List Boxes
- Attributes - Contains a list of all possible attributes that can be assigned to tag names. See below for the buttons used to add and delete attributes to and from this list box.
- (ignore all) - Any tag name with this built-in attribute assigned to its tag attributes will cause HTML Validator to ignore all attributes and attribute values of that tag name, regardless of any other attributes assigned. If the tag name is considered valid, all of its attributes and attribute values are considered valid.
- Tag attributes - Contains a list of tag attributes that are valid for the selected tag name being configured. To remove an attribute from the Tag Attributes List Box, select the attribute to remove and click the delete button (<-) or double click the attribute to remove. To add an attribute to the Tag Attributes List Box, select the attribute to add from the Attributes List Box and click the add button (->) or double click the attribute to add.
Combo Boxes
- Tag Name Being Configured - Use this combo box to select a tag name to configure. The tag selected here is the tag whose configuration is being displayed and edited.
- Attribute category - Use this combo box to select which tag category the selected attribute in the Attributes List Box belongs to. The attribute will only be valid when the selected category is an active category.
Push Buttons
- New Attribute - Press this button to add a new attribute to the Attributes List Box. The attribute that is added is the string contained in the edit box above the New Attribute Button. Note that the attribute may not contain spaces and will be changed to all uppercase characters, unless the attribute being added contains a combination of uppercase and lowercase characters. This does not mean the attribute must appear in uppercase to be valid when an HTML document is check. Attributes are not case sensitive.
- Delete Attribute - Press this button to delete the selected attribute or attribute group in the Attributes List Box. Built-in tag attributes cannot be deleted. Also note that if you delete an attribute, all tag names that are assigned the deleted attribute will no longer be assigned the attribute.
Check Boxes
- Required attribute - Check this box if the selected attribute in the Attributes List Box must be used with any tag name assigned the selected attribute. An error will be generated if the attribute is not used when the tag name is used. This option is not enabled by default.
- Warn if missing - Check this box if the selected attribute in the Attributes List Box "should" be used with any tag name assigned the selected attribute. A warning will be generated if the attribute is not used when the tag name is used. This option has no effect if Required attribute is checked. This option is not enabled by default.
- Display message when used - Check this box if you want HTML Validator to display the message in the Message When Used Edit Box when the selected attribute is used in an HTML document. This allows specific messages to be displayed to the user depending on the attributes used in the HTML document being validated. This option is not enabled by default.
- Disp. msg when doesn't validate - Check this box if you want HTML Validator to display the message in the Message When Doesn't Validate Edit Box when the selected attribute is used but has an invalid value. This allows specific messages to be displayed to the user depending on the attributes and attribute values in the HTML document being validated. This option is not enabled by default.
[ Table of Contents ]
Copyright © 1997-2003 AI Internet Solutions.